package com.work.libtest2.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.work.libtest2.dto.DepartmentDTO;
import com.work.libtest2.entity.Department;

import java.util.List;

/**
 * ClassName: DeptService
 * Package: com.work.libtest2.service
 * Description:
 *
 * @Author
 * @Create 2024/6/10 8:47
 * @Version 1.0
 */
public interface DepartmentService {
    List<Department> getAll();

    DepartmentDTO findDepByID(int id);
    int DeleteDepById(Integer Dep_Id);
    int SaveDepartment(Department department);
    int updateDep(Department department);

    IPage<DepartmentDTO> getPage(Integer currentPage, Integer pageSize, Department department);
}
